ARM: bcm2835: Set Serial number and Revision
authorNoralf Trønnes <noralf@tronnes.org>
Wed, 3 Jun 2015 10:26:13 +0000 (12:26 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:28:06 +0000 (17:28 +0000)
commit18d1a5592295c162a21def58be38c32f7a8ce298
tree61d133eedc6faeae3bf52c91cff9b770b882b3da
parent9b4ab6a7b777334f5b5e1a4e76e803a72e03f5a0
ARM: bcm2835: Set Serial number and Revision

The VideoCore bootloader passes in Serial number and
Revision number through Device Tree. Make these available to
userspace through /proc/cpuinfo.

Mainline status:

There is a commit in linux-next that standardize passing the serial
number through Device Tree (string: /serial-number):
ARM: 8355/1: arch: Show the serial number from devicetree in cpuinfo

There was an attempt to do the same with the revision number, but it
didn't get in:
[PATCH v2 1/2] arm: devtree: Set system_rev from DT revision

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
arch/arm/mach-bcm/board_bcm2835.c